using System;
using System.Collections.Generic;

namespace OracleInternal.TTC.Accessors
{
	internal class LobPrefetchInfo
	{
		internal int m_chunkSize;

		internal bool m_bDbVaryingWidth;

		internal short m_clobCharSet;

		internal byte m_clobFormOfUse;

		internal List<ArraySegment<byte>>[] m_prefetchedData;

		internal long[] m_totalLobSizeInDB;

		internal long[] m_prefetchedDataLength;

		internal LobPrefetchInfo(int numRowsRequested)
		{
			ReInit(numRowsRequested);
		}

		internal void ReInit(int numRowsRequested)
		{
			if (m_prefetchedData == null || m_prefetchedData.Length < numRowsRequested)
			{
				m_prefetchedData = new List<ArraySegment<byte>>[numRowsRequested];
				m_prefetchedDataLength = new long[numRowsRequested];
				m_totalLobSizeInDB = new long[numRowsRequested];
			}
		}
	}
}
